<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Hugo Even主题 - ZzmHub Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="ZzmHub" /><meta name="description" content="hugo-theme-even主题皮肤安装 在 \themes\ 目录下安装 $ git clone https://github.com/olOwOlo/hugo-theme-even even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据" /><meta name="keywords" content="Hugo, theme, even" />






<meta name="generator" content="Hugo 0.69.2 with theme even" />


<link rel="canonical" href="http://localhost:1313/post/hugo-theme-even/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.4eb71590ad024de2ebb1b5eef94cbb645b7e63e6b9c4c837355530a75e112ce1.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="Hugo Even主题" />
<meta property="og:description" content="hugo-theme-even主题皮肤安装 在 \themes\ 目录下安装 $ git clone https://github.com/olOwOlo/hugo-theme-even even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://localhost:1313/post/hugo-theme-even/" />
<meta property="article:published_time" content="2020-05-06T11:15:55+08:00" />
<meta property="article:modified_time" content="2020-05-06T11:15:55+08:00" />
<meta itemprop="name" content="Hugo Even主题">
<meta itemprop="description" content="hugo-theme-even主题皮肤安装 在 \themes\ 目录下安装 $ git clone https://github.com/olOwOlo/hugo-theme-even even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据">
<meta itemprop="datePublished" content="2020-05-06T11:15:55&#43;08:00" />
<meta itemprop="dateModified" content="2020-05-06T11:15:55&#43;08:00" />
<meta itemprop="wordCount" content="660">



<meta itemprop="keywords" content="Hugo," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Hugo Even主题"/>
<meta name="twitter:description" content="hugo-theme-even主题皮肤安装 在 \themes\ 目录下安装 $ git clone https://github.com/olOwOlo/hugo-theme-even even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">ZzmHub</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">ZzmHub</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">关于</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">Hugo Even主题</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-05-06 </span>
        <div class="post-category">
            <a href="/categories/%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/"> 工具使用 </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li><a href="#__hugo-theme-even主题皮肤安装__"><strong>hugo-theme-even主题皮肤安装</strong></a>
      <ul>
        <li><a href="#在-themes-目录下安装">在 <code>\themes\</code> 目录下安装</a></li>
        <li><a href="#定制修改">定制修改</a></li>
        <li><a href="#转载声明">转载声明</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h2 id="__hugo-theme-even主题皮肤安装__"><strong>hugo-theme-even主题皮肤安装</strong></h2>
<h3 id="在-themes-目录下安装">在 <code>\themes\</code> 目录下安装</h3>
<p><code>$ git clone https://github.com/olOwOlo/hugo-theme-even even</code></p>
<p><strong>重要</strong>: 在主题的 <code>exampleSite</code> 目录下有一个 <code>config.toml</code> 文件，将这个 <code>config.toml</code> 文件复制到你的站点目录下，根据自己的需求更改即可。</p>
<p><strong>重要</strong>: 本主题用到了 <code>Hugo Pipes</code> 功能。如需修改 <code>assets</code> 目录下的文件，请安装 <code>Hugo extended</code> 版。</p>
<p><strong>注意</strong>: 对于这个主题，你应该使用 <code>post</code> 而不是 <code>posts</code>，即 <code>hugo new post/some-content.md</code>。</p>
<h3 id="定制修改">定制修改</h3>
<ol>
<li>
<p>更改语言，标题</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">languageCode = &#34;zh-cn&#34;
defaultContentLanguage = &#34;zh-cn&#34;
title = &#34;ZzmHub Blog&#34;
</code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>更改目录配置</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">[[menu.main]]
name = &#34;首页&#34;
weight = 10
identifier = &#34;home&#34;
url = &#34;/&#34;
[[menu.main]]
name = &#34;归档&#34;
weight = 20
identifier = &#34;archives&#34;
url = &#34;/post/&#34;
[[menu.main]]
name = &#34;分类&#34;
weight = 30
identifier = &#34;categories&#34;
url = &#34;/categories/&#34;
[[menu.main]]
name = &#34;标签&#34;
weight = 40
identifier = &#34;tags&#34;
url = &#34;/tags/&#34;
[[menu.main]]
name = &#34;关于&#34;
weight = 50
url = &#34;/about/&#34;
</code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>更改底部社交链接</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">[params.social]
a-email = &#34;mailto:gdmec.zhi@email.com&#34;
# b-stack-overflow = &#34;http://localhost:1313&#34;
# c-twitter = &#34;http://localhost:1313&#34;
# d-facebook = &#34;http://localhost:1313&#34;
# e-linkedin = &#34;http://localhost:1313&#34;
# f-google = &#34;http://localhost:1313&#34;
g-github = &#34;https://github.com/zhimianhub&#34;
# h-weibo = &#34;http://localhost:1313&#34;
# i-zhihu = &#34;http://localhost:1313&#34;
# j-douban = &#34;http://localhost:1313&#34;
# k-pocket = &#34;http://localhost:1313&#34;
# l-tumblr = &#34;http://localhost:1313&#34;
# m-instagram = &#34;http://localhost:1313&#34;
# n-gitlab = &#34;http://localhost:1313&#34;
# o-bilibili = &#34;http://localhost:1313&#34;
</code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>更改even主题</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">// Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet
$theme-color-config: &#39;Cobalt Blue&#39;;
</code></pre></td></tr></table>
</div>
</div><p>将even原本默认的主题颜色 <code>Default</code> 修改为 <code>Cobalt Blue</code> ，只需修改</p>
<p><code>\themes\even\assets\sass</code> 路径下的 <code>_variables.scss</code> 文件，然后再在网页主目录下使用hugo命令即可构建成功。</p>
<p><strong>注意：</strong> even皮肤要客制化主题使其能够生效，需要下载 <strong>hugo_extended</strong> Hugo定制版，否则不会生效。</p>
</li>
</ol>
<h3 id="转载声明">转载声明</h3>
<blockquote>
<p>作者：olOwOlo<br>
链接：<a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md">https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md</a><br>
来源：GitHub<br>
著作权归作者所有，任何形式的转载都请联系作者。</p>
</blockquote>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">ZzmHub</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2020-05-06
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/hugo/">Hugo</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/git-command/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">Git常用命令总结</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/hugo-command/">
            <span class="next-text nav-default">Hugo 命令行</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:gdmec.zhi@email.com" class="iconfont icon-email" title="email"></a>
      <a href="https://github.com/zhimianhub" class="iconfont icon-github" title="github"></a>
  <a href="http://localhost:1313/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2017 - 
    2020
    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">ZzmHub</span>
  </span>
</div>
    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.d7b7ada643c9c1a983026e177f141f7363b4640d619caf01d8831a6718cd44ea.js"></script>








</body>
</html>
